<%@ taglib uri="/struts-tags" prefix="s" %>

<script language="javascript" type="text/javascript">
    function submitForm(form,forward) {
        form.forwardAction.value = forward;
        form.submit();
    }
</script>

<html>
    <head>
    </head>
    <body bgcolor="white">
    <s:form action="userRegistration" method="post">
        <s:actionerror />
        <s:fielderror />
        <s:hidden property="forwardAction" value=""/>
        <table>
            <tr>
                <td align="center" colspan="4">
                    <font size="4"><s:text name="addressForm.title"/></font>
            </tr>
            <tr>
                <td colspan="2"align="left">
                    <s:textfield key="user.name" size="30" maxlength="30"/>
                </td>
            </tr>

            <tr>
                <td colspan="2"align="left">
                    <s:textfield key="user.age" size="30" maxlength="3"/>
                </td>
            </tr>

            <tr>
                <td colspan="2" align="left">
                    <s:textfield key="user.address" size="30" maxlength="30"/>
                </td>
            </tr>

            <tr>
                <td colspan="2" align="left">
                    <s:textfield key="user.emailAddress" size="30" maxlength="30"/>
                </td>
            </tr>

            <tr>
                <td>
                    <s:submit/>
                </td>
            </tr>
        </table>
    </s:form>
    </body>
</html>